﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="http://nicoviewviewmodel"  
        x:Class="NicoView.View.NicoViewVideoConsoleWindow"
        Title="動画情報" Width="500" Height="480" Topmost="True"  >
    <Window.Background>
        <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlLightColorKey}}"/>
    </Window.Background>

    <Window.DataContext>
        <vm:NicoViewVideoAddConsoleViewModel/>
    </Window.DataContext>

    <StackPanel Background="Black" Margin="20">
        
        <TextBlock  Text="動画情報" HorizontalAlignment="Center" FontSize="24" Margin="0,20,0,0">
            <TextBlock.Foreground>
                <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.WindowColorKey}}"/>
            </TextBlock.Foreground>
        </TextBlock>
        <Grid Margin="20"  HorizontalAlignment="Center">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Image  Height="80" Grid.Column="0"  VerticalAlignment="Top" Width="80" Source="{Binding ThumbnailUrl, Mode=OneWay}"/>
            <TextBox Grid.Column="1" IsReadOnly="True" TextWrapping="Wrap" Text="{Binding Title, Mode=OneWay}" HorizontalAlignment="Left" FontSize="18" Background="{x:Null}" BorderBrush="{x:Null}"   >
                <TextBox.Foreground>
                    <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.WindowColorKey}}"/>
                </TextBox.Foreground>
            </TextBox>
        </Grid>

        <TextBlock HorizontalAlignment="Right" Margin="0,0,20,0">
            <Hyperlink x:Name="Videolink"   FontSize="18" Command="{Binding ExecuteVideoUrl, Mode=OneWay}" Click="Videolink_Click">動画ページへ</Hyperlink>
        </TextBlock>
        <StackPanel Height="30"/>
        <ComboBox SelectedItem="{Binding AddTarget}"  ItemsSource="{Binding MylistItems}" Margin="40,0">
            <ComboBox.ItemTemplate>
                <DataTemplate>


                        <TextBlock Text="{Binding Path=Name}" />





                </DataTemplate>
            </ComboBox.ItemTemplate>

        </ComboBox>
        <StackPanel Height="30"/>
        <Button x:Name="AddMylistButton" Content="マイリストに登録"   Width="80" Command="{Binding AddCommand, Mode=OneWay}" Click="AddMylistButton_Click"/>
     
        
        

    </StackPanel>
</Window>
